package com.py.inrejected.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * ${subTable.functionName}对象 od_rejected_details
 *
 * @author 童佳
 * @date 2024-12-06
 */
public class OdRejectedDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 进货退货明细id */
    private Long rdId;

    /** 进货退货单号 */
    @Excel(name = "进货退货单号")
    private String prCode;

    /** 货品名称 */
    @Excel(name = "货品名称")
    private String productName;

    /** 货品编号 */
    @Excel(name = "货品编号")
    private String productCode;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String productModel;

    /** 货品类型 */
    @Excel(name = "货品类型")
    private String productType;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 进货数量 */
    @Excel(name = "进货数量")
    private Long inNum;

    /** 已入库 */
    @Excel(name = "已入库")
    private Long alreadyNum;


    /** 本次退货数量 */
    @Excel(name = "本次退货数量")
    private Long rejectedNum;

    /** 进货单价 */
    @Excel(name = "进货单价")
    private BigDecimal inPrice;

    /** 退货金额 */
    @Excel(name = "退货金额")
    private BigDecimal rejectedPrice;

    private String isDel;

    @Transient
    private int alreadyoutnum;

    @Transient
    private Integer alredlyrejectedNum;

    public int getAlreadyoutnum() {
        return alreadyoutnum;
    }

    public void setAlreadyoutnum(int alreadyoutnum) {
        this.alreadyoutnum = alreadyoutnum;
    }

    public Integer getAlredlyrejectedNum() {
        return alredlyrejectedNum;
    }

    public void setAlredlyrejectedNum(Integer alredlyrejectedNum) {
        this.alredlyrejectedNum = alredlyrejectedNum;
    }

    public String getIsDel() {
        return isDel;
    }

    public void setIsDel(String isDel) {
        this.isDel = isDel;
    }

    public void setRdId(Long rdId)
    {
        this.rdId = rdId;
    }

    public Long getRdId()
    {
        return rdId;
    }
    public void setPrCode(String prCode)
    {
        this.prCode = prCode;
    }

    public String getPrCode()
    {
        return prCode;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setProductCode(String productCode)
    {
        this.productCode = productCode;
    }

    public String getProductCode()
    {
        return productCode;
    }
    public void setProductModel(String productModel)
    {
        this.productModel = productModel;
    }

    public String getProductModel()
    {
        return productModel;
    }
    public void setProductType(String productType)
    {
        this.productType = productType;
    }

    public String getProductType()
    {
        return productType;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setInNum(Long inNum)
    {
        this.inNum = inNum;
    }

    public Long getInNum()
    {
        return inNum;
    }
    public void setAlreadyNum(Long alreadyNum)
    {
        this.alreadyNum = alreadyNum;
    }

    public Long getAlreadyNum()
    {
        return alreadyNum;
    }
    public void setRejectedNum(Long rejectedNum)
    {
        this.rejectedNum = rejectedNum;
    }

    public Long getRejectedNum()
    {
        return rejectedNum;
    }
    public void setInPrice(BigDecimal inPrice)
    {
        this.inPrice = inPrice;
    }

    public BigDecimal getInPrice()
    {
        return inPrice;
    }
    public void setRejectedPrice(BigDecimal rejectedPrice)
    {
        this.rejectedPrice = rejectedPrice;
    }

    public BigDecimal getRejectedPrice()
    {
        return rejectedPrice;
    }

    @Override
    public String toString() {
        return "OdRejectedDetails{" +
                "rdId=" + rdId +
                ", prCode='" + prCode + '\'' +
                ", productName='" + productName + '\'' +
                ", productCode='" + productCode + '\'' +
                ", productModel='" + productModel + '\'' +
                ", productType='" + productType + '\'' +
                ", unit='" + unit + '\'' +
                ", inNum=" + inNum +
                ", alreadyNum=" + alreadyNum +
                ", rejectedNum=" + rejectedNum +
                ", inPrice=" + inPrice +
                ", rejectedPrice=" + rejectedPrice +
                ", isDel='" + isDel + '\'' +
                ", alreadyoutnum=" + alreadyoutnum +
                ", alredlyrejectedNum=" + alredlyrejectedNum +
                '}';
    }
}
